# !/usr/bin/env python
# -*- coding:utf-8 -*-

import re
import requests

def getPic(html,keyword):
    pic_url = re.findall('"objURL":"(.*?)",',html,re.S)
    i = 0
    print 'keyword '+keyword+' download'
    for each in pic_url:
        try:
            pic = requests.get(each,timeout=10)
        except requests.exceptions.connectionError:
            print 'error'
    string =  'pictures\\' +keyword+'_'+str(i)+'.jpg'
    fp = open(string.decode('utf-8').encode('utf-8'),'wb')
    fp.write(pic.content)
    fp.close()
    i +=1

if __name__=='__main__':
    word = raw_input("dd")
    url=''
    result = requests.get(url)
